<template>
  <el-aside width="20%">
    <UserAvater :url="userAvaterUrl"></UserAvater>
    <CollectItem></CollectItem>
    <CollectItem></CollectItem>
    <el-menu :default-openeds="['1', '2']">
      <el-submenu index="1">
        <template slot="title">创建的歌单</template>
        <MyPlaylist></MyPlaylist>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title">收藏的歌单</template>
        <MyPlaylist></MyPlaylist>
      </el-submenu>
    </el-menu>
  </el-aside>
</template>

<script>
import UserAvater from './UserAvater';
import CollectItem from './collectItem';
import MyPlaylist from './myPlaylist';
export default {
  data() {
    return {
      userAvaterUrl:
        'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
    };
  },
  components: {
    UserAvater,
    CollectItem,
    MyPlaylist,
  },
};
</script>

<style lang="scss" scoped>
$top-color: #c20c0c;
.el-aside {
  background: white;
  border-right: 5px solid $top-color;
  position: absolute;
  // height: calc(100%-60px);
  overflow-y: auto;
  height: 100%;
}
</style>
